import axios from "axios";

const service = axios.create({
    baseURL: 'http://localhost:82', // api base_url
    timeout: 6000 // 请求超时时间
})

service.interceptors.response.use(res => {
    return res.data;
})
// const instance = axios.create({
//     //服务端地址
//     baseURL: 'http://localhost:8081',
//     timeout: 3000,
// });

// export default service as axios;
export {
    service as axios
}
